function listAllAccount() {
    menu();
    //设置所要显示的页面
    $("#workArea").attr("src", ctx + "/listAccount.action");
}

function loadUserData() {
    menu();
    $("#workArea").attr("src", ctx + "/initUserData.action");
}

function loadBlogData() {
    menu();
    $("#workArea").attr("src", ctx + "/initBlogData.action");
}

function listCategory() {
    menu();
    $("#workArea").attr("src", ctx + "/listCategory.action");
}

function listLabel() {
    menu();
    $("#workArea").attr("src", ctx + "/listLabel.action");
}

function listArticle() {
    menu();
    $("#workArea").attr("src", ctx + "/pageOfArticleByBlogData.action");
}

function listComment() {
    menu();
    $("#workArea").attr("src", ctx + "/listCommentByBlogData.action");
}




function listAccount() {
    var id = $("input[name='accountVO.id']").val();
    $("#workArea").attr("src", ctx + "/loadAccount.action?id=" + id);
}



$(document).ready(function () {
    $(".active a").click();
});

function menu() {
    $(".menu li").click(function () {
        $("li[class='active']").removeAttr("class");
        $(this).addClass("active");
    });
}